.PHONY:all
all:mythread1 mythread2 mythread3

mythread1:mypthread1.cpp
	g++ -o $@ $^ -std=c++11 -lpthread

mythread2:mypthread2.cpp
	g++ -o $@ $^ -std=c++11 -lpthread

mythread3:mypthread3.cpp
	g++ -o $@ $^ -std=c++11 -lpthread

mythread4:mypthread4.cpp
	g++ -o $@ $^ -std=c++11 -lpthread

.PHONY:clean
clean:
	rm -f mythread1 mythread2 mythread3 mythread4